﻿@{
    ViewBag.Title = "发货计划列表";
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@( 
 Html.nbGridFor<V_MaterialDeliveryPlan>(s =>
 {
     s.Action("List");
     s.ExtParam(new { date = @ViewBag.Date ?? "" });
     s.Columns(c =>
     {
         c.Bind(m => m.Id).IsKey();
         c.BindDateTime(m => m.Date).Width(70).Title("送货日期").AsSearch();
         c.BindEnum(m => m.SiteId, "ProjectSite").Title("项目点");
         c.BindEnum(m => m.DishCategory, "DishType").Title("菜肴类别").AsSearch();
         c.Bind(m => m.DishName).Width(100).Align(GridAlign.Left).Title("菜肴名称").AsQuery().AsSearch();
         c.BindEnum(m => m.Category, "MaterialCategory").Width(60).Title("品名分类").AsSearch();
         c.Bind(m => m.Name).Width(100).Align(GridAlign.Left).Title("品名名称").AsQuery().AsSearch();
         c.Bind(m => m.Code).Width(60).Title("品名编号").AsQuery().AsSearch();
         c.Bind(m => m.TotalWeight).Width(80).Align(GridAlign.Right).Title("送货量");
     });
     s.Buttons(b =>
     {
         b.BindAddButton("生成送货单").Action("SetectType");
     });
 }))
